<!DOCTYPE HTML>
<html lang="zh-cn">
<head>
<meta charset="utf-8" />
<%set (string){category_title}=get_category_title({category_id},"有趣的人和事")%>
<title>{category_title}|{config.webname}</title>
<meta name="description" content="{category_title}" />
<meta name="keywords" content="{category_title},创新，设计，有趣的人和事，技术，文档,网页设计与制作,技术, 一日禅,梦想,读图,设备" />
<meta content="Copyright 2012 ihongma.com" name="copyright">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" href="{config.templateskin}/css/global.css" type="text/css" media="screen" />
<script type=text/javascript src="{config.templateskin}/js/jquery-1.7.1.min.js"></script>
<!--[if lt IE 9]><script src="{config.templateskin}/js/html5.js"></script><![endif]-->
</head>
<body>

<%template src=/header.html/%>
<div class="inside">
    <ul class="c_menu">
        <%csharp%>
            string all=category_id==0?"class='active'":"";
            <%/csharp%>
                <li class="all">
                    <a {all} href="<%linkurl("article_list1","")%>">
                        所有内容
                    </a>
                </li>
                <%set (DataTable){category_list}=get_category_list(channel_id, 0)%>
                    <%loop cdr category_list%>
                        <li>
                            <%csharp%>
                                string classstr=category_id==Convert.ToInt32(cdr["id"])?"class='active'":"";
                                <%/csharp%>
                                    <li class="new">
                                        <a {classstr} href="<%linkurl("article_list",{cdr[id]},1)%>">
                                            {cdr[title]}
                                        </a>
                                    </li>
                                    <%/loop%>
    </ul>
  <div class="file_wrap">
    <ul class="file_list file_lmain">
       <%set (DataTable){list}=get_article_list(channel_id, category_id, 12, page, "is_lock=0", out totalcount)%> <!--取得一个DataTable-->
    <%set (string){pagelist}=newget_page_link(12, page, totalcount, "article_list", category_id, "__id__")%> <!--取得分页页码列表-->
    <%loop dr list%>
    <li>
        <div><img src="{dr[img_url]}"  width="200px"  /></div>
        <h3><a href="<%linkurl("article_show",{dr[id]})%>">{dr[title]}</a></h3>
        <p>{dr[zhaiyao]}</p>
      </li>

   
    <%/loop%>
      
   
    </ul>
    <!---->
    <div class="pag">
    {pagelist}
    
    </div>
    <!---->
  </div>
</div>

<%template src=/footer.html/%>

</body>
</html>
